!function(a) {
    a.fn.vTicker = function(b) {
        var c = {
            speed: 700,
            pause: 4e3,
            showItems: 3,
            animation: "",
            mousePause: !0,
            isPaused: !1,
            direction: "up",
            height: 0
        };
        return b = a.extend(c, b), moveUp = function(b, c, d) {
            var e, f;
            d.isPaused || (e = b.children("ul"), f = e.children("li:first").clone(!0), d.height > 0 && (c = e.children("li:first").height()), 
            e.animate({
                top: "-=" + c + "px"
            }, d.speed, function() {
                a(this).children("li:first").remove(), a(this).css("top", "0px");
            }), "fade" == d.animation && (e.children("li:first").fadeOut(d.speed), 0 == d.height && e.children("li:eq(" + d.showItems + ")").hide().fadeIn(d.speed)), 
            f.appendTo(e));
        }, moveDown = function(b, c, d) {
            var e, f;
            d.isPaused || (e = b.children("ul"), f = e.children("li:last").clone(!0), d.height > 0 && (c = e.children("li:first").height()), 
            e.css("top", "-" + c + "px").prepend(f), e.animate({
                top: 0
            }, d.speed, function() {
                a(this).children("li:last").remove();
            }), "fade" == d.animation && (0 == d.height && e.children("li:eq(" + d.showItems + ")").fadeOut(d.speed), 
            e.children("li:first").hide().fadeIn(d.speed)));
        }, this.each(function() {
            var c = a(this), d = 0;
            c.css({
                overflow: "hidden",
                position: "relative"
            }).children("ul").css({
                position: "absolute",
                margin: 0,
                padding: 0
            }).children("li").css({
                margin: 0,
                padding: 0
            }), 0 == b.height ? (c.children("ul").children("li").each(function() {
                a(this).height() > d && (d = a(this).height());
            }), c.children("ul").children("li").each(function() {
                a(this).height(d);
            }), c.height(d * b.showItems)) : c.height(b.height), setInterval(function() {
                "up" == b.direction ? moveUp(c, d, b) : moveDown(c, d, b);
            }, b.pause), b.mousePause && c.bind("mouseenter", function() {
                b.isPaused = !0;
            }).bind("mouseleave", function() {
                b.isPaused = !1;
            });
        });
    };
}(jQuery);